package com.hope.class_;


import java.io.Serializable;

/**
 * 哪些类型有Class对象
 */
public class AllTypeClass {
    public static void main(String[] args) {

        Class<String> cls1 = String.class;//外部  class java.lang.String
        Class<Serializable> cls2 = Serializable.class;//接口interface java.io.Serializable
        Class<Integer[]> cls3 = Integer[].class;//数组class [Ljava.lang.Integer;
        Class<float[][]> cls4 = float[][].class;//二维数组class [[F
        Class<Deprecated> cls5 = Deprecated.class;//注解interface java.lang.Deprecated

        Class<Thread.State> cls6 = Thread.State.class;//枚举class java.lang.Thread$State
        Class<Long> cls7 = long.class;//基本数据类型long
        Class<Void> cls8 = void.class;//void类型void
        Class<Class> cls9 = Class.class;//class java.lang.Class

        System.out.println(cls1);
        System.out.println(cls2);
        System.out.println(cls3);
        System.out.println(cls4);
        System.out.println(cls5);
        System.out.println(cls6);
        System.out.println(cls7);
        System.out.println(cls8);
        System.out.println(cls9);



    }

}
